package edu.dayu.proxyTest;

import java.util.ArrayList;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        List<Interceptor> list = new ArrayList<>();
        list.add(new LogInterceptor());
        HelloService wrap = (HelloService) HWInvocationHandler.wrap(new HelloServiceImpl(), list);
        wrap.hello();
        //日志拦截
        //hello
    }
}
